package com.ljm.boot.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
 
@Document
public class YourEntity {
    @Id
    private String id;
    // 其他字段和方法


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}